package com.magus.project.yddemo.scheduler;

import org.apache.tools.ant.util.DateUtils;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

import com.magus.framework.core.springbean.SpringContextUtils;
import com.magus.project.yddemo.service.IndicatorMapperDataApiService;

/**
 * 
 * 
 * @author Zhang JiaWei
 * @date 2018-03-23 15:05
 */
public class IndicatorMapperDataJob implements Job {

	@Override
	public void execute(JobExecutionContext context) throws JobExecutionException {
		IndicatorMapperDataApiService api = SpringContextUtils.getBean(IndicatorMapperDataApiService.class);

		// 当前日期
		String date = DateUtils.format(System.currentTimeMillis(), "yyyyMMdd");
		api.updateIndicatorData(date);

	}

}
